import { createApp } from 'vue'
import ArcoVue from '@arco-design/web-vue';
import App from './App.vue';
import '@arco-design/web-vue/dist/arco.css';
import router from "@/router/router";
import {createPinia} from "pinia";
import VMdEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
import '@kangc/v-md-editor/lib/theme/style/github.css';
import hljs from 'highlight.js';
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css'

VMdEditor.use(githubTheme, {

    Hljs: hljs,
});
VMdPreview.use(githubTheme, {

    Hljs: hljs,
});
const app = createApp(App);
const pinia = createPinia();
app.use(ArcoVue);
app.use(router);
app.use(pinia);
app.use(VMdEditor);
app.use(VMdPreview);
app.mount('#app');